export const androidPhoneLoginConfig={
	AppID:"v2HhHz75" ,
	AppKey:"wxNclUkd"
}
export const iosPhoneLoginConfig={
	AppID:"I9lkYQfh",
	AppKey:"rTRjj6zh"
}
// #ifdef H5
// import VConsole from 'vconsole';
// const vConsole = new VConsole()
// if(process.env.NODE_ENV === 'development'){
	
// }
// #endif
//测试ios
// AppID： BstIeK1G
// AppKey  ： CmwrOGoQ
//正式 ios
// AppID：I9lkYQfh
// AppKey  ：rTRjj6zh
export const H5PhoneLoginConfig={
	AppID:"9xTvPj5h",
	AppKey:"46LAlIl2"
}
var config = {
	// https://www.xiaocaoku.cn https://dev.xiaocaoku.cn
	// api请求地址
	baseUrl:process.env.NODE_ENV === 'development'? 'https://dev.xiaocaoku.cn':'https://dev.xiaocaoku.cn',
	// 图片域名
	imgDomain: process.env.NODE_ENV === 'development'? 'https://dev.xiaocaoku.cn':'https://dev.xiaocaoku.cn',
	// H5端域名
	h5Domain:process.env.NODE_ENV === 'development'? 'https://dev.xiaocaoku.cn':'https://dev.xiaocaoku.cn',
	// 腾讯地图key
	mpKey: '',
	//客服地址
	webSocket: '',
	//本地端主动给服务器ping的时间, 0 则不开启 , 单位秒
	pingInterval: 1500,
	iosUniversalLink:"https://dcloud.xiaocaoku.cn/uni-universallinks/__UNI__D9A92B5/"
};

// #ifdef H5
const winurl = window.location.href;
const n1 = /http(s)?:\/\/(dev)\.(xiaocaoku.cn)/;
const n2 = /http(s)?:\/\/(www)\.(xiaocaoku.cn)/;
if (winurl.match(n1) !== null) {
	config.baseUrl = 'https://dev.xiaocaoku.cn';
	config.imgDomain = 'https://dev.xiaocaoku.cn';
	config.h5Domain = 'https://dev.xiaocaoku.cn';
} else if (winurl.match(n2) !== null) {
	config.baseUrl = 'https://www.xiaocaoku.cn';
	config.imgDomain = 'https://www.xiaocaoku.cn';
	config.h5Domain = 'https://www.xiaocaoku.cn';
} else {
	config.baseUrl = 'https://dev.xiaocaoku.cn';
	config.imgDomain = 'https://dev.xiaocaoku.cn';
	config.h5Domain = 'https://dev.xiaocaoku.cn';
}
// #endif
// console.log('配置接口',config.baseUrl);
export default config;
